<?php
$this->pageTitle=Lang::t('user.register.page.breadcrumbs');
$this->breadcrumbs[]=Lang::t('user.register.page.breadcrumbs');
?>

<div class="col-sm-6">
<?php 
$formConfig['htmlOptions']['class']='form-horizontal';
$formConfig['htmlOptions']['role']='form';
?>
<?php $form = $this->beginWidget('ActiveForm', $formConfig); ?>

<h1><?php echo Lang::t('user.register.page.title'); ?></h1>
<span class="help-block"><?php echo Lang::t('user.register.form.note'); ?></span>

<?php echo $form->alert(array($user,$address), array(
    'errorMessageHtmlOptions'=>array('class'=>'alert alert-danger'), 
    'flashHtmlOptions'=>array('class'=>'alert alert-'),
)); ?>

<div class="form-group">
    <?php echo $form->labelEx($user,'firstName_',array('class'=>'control-label col-sm-4')); ?>
    <div class="col-sm-6">
    <?php echo $form->textField($user,'firstName_',array('class'=>'form-control')); ?>
    </div>
    <?php //echo $form->error($user,'firstName_'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($user,'lastName_',array('class'=>'control-label col-sm-4')); ?>
    <div class="col-sm-6">
    <?php echo $form->textField($user,'lastName_',array('class'=>'form-control')); ?>
    </div>
    <?php //echo $form->error($user,'lastName_'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($user,'gender_',array('class'=>'control-label col-sm-4')); ?>
    <div class="col-sm-6">
    <?php echo $form->radioButtonList($user,'gender_', $user->genderOption, array(
        'template'=>'{beginLabel}{input} {labelTitle}{endLabel}',
        'labelOptions'=>array('class'=>'radio-inline'),
        'separator'=>''
        )); ?>
    </div>
    <?php //echo $form->error($user,'gender_'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($user,'mobileNumber_',array('class'=>'control-label col-sm-4')); ?>
    <div class="col-sm-6">
    <?php echo $form->textField($user,'mobileNumber_',array('class'=>'form-control')); ?>
    </div>
    <?php //echo $form->error($user,'mobileNumber_'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($user,'email_',array('class'=>'control-label col-sm-4')); ?>
    <div class="col-sm-6">
    <?php echo $form->textField($user,'email_',array('class'=>'form-control')); ?>
    </div>
    <?php //echo $form->error($user,'email_'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($address,'country_',array('class'=>'control-label col-sm-4')); ?>
    
    <div class="col-sm-6">
    <?php //echo $form->dropDownList($address,'country_',$address->countryOption,array('class'=>'form-control')); ?>
    <?php //echo $form->error($address,'country_'); ?>
        <p class="form-control-static"><?php echo $address->getCountryOption($address->country_); ?></p>
    </div>
</div>

<hr/>
<div class="form-group">
    <?php echo $form->labelEx($user,'password_',array('class'=>'control-label col-sm-4')); ?>
    <div class="col-sm-6">
    <?php echo $form->passwordField($user,'password_',array('class'=>'form-control')); ?>
    </div>
    <?php //echo $form->error($user,'password_'); ?>
</div>

<div class="form-group">
    <?php echo $form->labelEx($user,'password2_',array('class'=>'control-label col-sm-4')); ?>
    <div class="col-sm-6">
    <?php echo $form->passwordField($user,'password2_',array('class'=>'form-control')); ?>
    </div>
    <?php //echo $form->error($user,'password2_'); ?>
</div>

<hr/>
<div class="row">
    <?php $form->captchaImage(); ?>
    <?php echo $form->labelEx($user,'captcha_'); ?>
    <?php echo $form->textField($user,'captcha_'); ?>
    <?php //echo $form->error($user,'captcha_'); ?>
</div>

<div class="form-group">
    <button type="submit" class="btn btn-default" /><?php echo Lang::t('user.register.btn.submit'); ?></button>
</div>
<?php $this->endWidget(); ?>
</div>
<div class="col-sm-6">

</div>